TEMP x
This field is a temporary alphanumeric work area that can be used by any statement series. Substring manipulation of this field is provided through the use of the SET TEMP statement. This field can also be used in CANCEL, ERROR, MESSAGE, and WARNING statements to provide variable messages.
TEMP x
Temp fields variy from 1 to 32k in size (x). Temp fields temporarily store alpha numeric characters.
Valid TEMP x sizes are; 1,2,3,4,5,6,7,8,9,10,11,12,16,20,22,24,30,32,40,50,60,64,79,80,128,132,256,512,1k,2k,8k, and 32k. TEMP 132 for example.
Left/Right/Center justification with and without zero fill variations can be specified on all --- TEMP fields. The suffix designates the type of justification:
L - Left Justified
R- Right Justified
L0 - Left Justified, zero fill
R0 - Right Justified, zero fill
C - Centered.
For example:
--- TEMP 128 - no justification, no fill (same as always)
--- TEMP 128L - left justification, no fill
--- TEMP 128L0 - left justification, zero fill
--- TEMP 128R - right justification, no fill
--- TEMP 128R0 - right justification, zero fill
--- TEMP 128C - center justification, no fill
Note that when using SET TEMP with the justified/filled versions that APPX does not apply any justification or fill. The character(s) will be inserted into the location you specified, regardless of the justification/fill of the target field. For example, using SET TEMP to put an 'X' in the 7th position in TEMP 30C (center justification) will not centre the "X", it will remain in the 7th position. Only a SET statement applies fill/justification.
|